import apiUrl from '../base'
import axios from '@/libs/axios'
const alert = {
  // 待办预警
  alertTodo(formData) {
    return axios.get(`${apiUrl.risk}v1/AlertMessage/statTodoMessage?enterpriseId=${formData.enterpriseId}&projectId=${formData.projectTeamId || ''}&rangeType=${formData.time}`, '')
  },
  // 预警表格统计
  alertTable(formData) {
    return axios.get(`${apiUrl.risk}v1/AlertMessage/statTodoMessageTable?enterpriseId=${formData.enterpriseId}&projectId=${formData.projectTeamId || ''}&rangeType=${formData.time}`, '')
  },
  // 预警趋势
  alertTrend(formData) {
    return axios.get(`${apiUrl.risk}v1/AlertMessage/statMessageTrend?enterpriseId=${formData.enterpriseId}&projectId=${formData.projectTeamId || ''}&rangeType=${formData.time}`, '')
  },
}
export default alert
